package com.iwomy.envpro.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 设备报文
 *
 * @author pig
 * @date 2023-10-19 16:07:20
 */
@Data
@TableName("device_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备报文")
public class DeviceLogEntity extends Model<DeviceLogEntity> {


	/**
	 * 编号
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "编号")
	private Long id;

	/**
	 * 设备编码
	 */
	@Schema(description = "设备编码")
	private String equipmentCode;

	/**
	 * 请求参数
	 */
	@Schema(description = "请求参数")
	private String content;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;


	@TableField(exist = false)
	private Long deptId;

}